import {SearchHome} from './service'
import React, { useState } from 'react';
import {Button} from 'antd';
import {request} from 'umi';
const Word =  ()=>{
const hanlclick = ()=>{
        request('/api/home').then(res=>{
            console.log(res);
            
        })
}

    return(
        <div>   
            <Button type="primary" onClick={hanlclick}>Primary Button</Button>   
        </div>
    )
}
export default Word